<%--                                                                       --%>
<%-- Copyright (c) 2003-2005 BroadVision, Inc.  All rights reserved.       --%>
<%--                                                                       --%>
<%-- This software is copyrighted. Under the copyright laws, this software --%>
<%-- may not be copied, in whole or in part, without prior written consent --%>
<%-- of BroadVision, Inc. or its assignees. This software is provided      --%>
<%-- under the terms of a license between BroadVision and the recipient,   --%>
<%-- and its use is subject to the terms of that license.                  --%>
<%--                                                                       --%>
<%-- This software may be protected by one or more U.S. and International  --%>
<%-- patents.  Certain applications of BroadVision One-To-One software are --%>
<%-- covered by U.S. patent 5,710,887.                                     --%>
<%--                                                                       --%>
<%-- TRADEMARKS: BroadVision and BroadVision One-To-One are registered     --%>
<%-- trademarks of BroadVision, Inc., in the United States and the         --%>
<%-- European Community, and are trademarks of BroadVision, Inc., in other --%>
<%-- countries.  The BroadVision logo, is a trademark of BroadVision,      --%>
<%-- Inc., in the United States and other countries. Additionally, IONA    --%>
<%-- and Orbix are trademarks of IONA Technologies, Ltd.  RSA, MD5, and    --%>
<%-- RC2 are trademarks of RSA Data Security, Inc.                         --%>
<%--                                                                       --%>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<% 
  java.util.HashMap map = new java.util.HashMap();
  String procOid = request.getParameter("processOid"); 
  if (procOid != null && procOid.length() > 0) {
    map.put("processOid", procOid);
  }
  else {
    map.put("processOid", "-1");
  }
  pageContext.setAttribute("pagetabParam", map, PageContext.PAGE_SCOPE);
%>

<html:form action="/bp/processDataItems.do">
<html:hidden name="processDataItemsForm" property="processOid"/>
<table class="zoneFive" width="100%" border="0" cellspacing="0" cellpadding="0" summary="content area">
  <tr>
    <td valign="top" width="100%">
      <div class="pageTitle"><bean:write name="processDataItemsView" property="name"/></div>
      <div class="errorMessage"><html:errors bundle="bp.messages"/></div>
      <%@include file="/mc/common/pagetab.jsp" %>
      <logic:present name="processSubprocessPath" scope="session">
        <logic:greaterThan name="processSubprocessPath" property="processOid" value="0">
          <div class="breadcrumb">
            <html:link page="/bp/processSubprocessView.do" paramId="processOid" paramName="processSubprocessPath" paramProperty="processOid">
              <bean:write name="processSubprocessPath" property="processName"/>
            </html:link>
            <logic:iterate id="subprocess" name="processSubprocessPath" property="subprocesses" indexId="i">
              &nbsp;<bean:message key="bp.process.taskSeparator" bundle="bp.messages"/>&nbsp;
              <logic:equal name="subprocess" property="lastone" value="false">
                <html:link page="/bp/processSubprocessTaskView.do" name="subprocess" property="parameterTaskMap">
                  <bean:write name="subprocess" property="number"/>:
                  <bean:write name="subprocess" property="friendlyName"/>
                </html:link>
                &nbsp;<bean:message key="bp.process.taskSeparator" bundle="bp.messages"/>&nbsp;
                <html:link page="/bp/processSubprocessView.do" name="subprocess" property="parameterMap">
                  <bean:write name="subprocess" property="subprocessName"/>
                </html:link>
              </logic:equal>
              <logic:equal name="subprocess" property="lastone" value="true">
                <html:link page="/bp/processSubprocessTaskView.do" name="subprocess" property="parameterTaskMap">
                  <bean:write name="subprocess" property="number"/>:
                  <bean:write name="subprocess" property="friendlyName"/>
                </html:link>
                &nbsp;<bean:message key="bp.process.taskSeparator" bundle="bp.messages"/>&nbsp;
                <bean:write name="subprocess" property="subprocessName"/>
              </logic:equal>
            </logic:iterate>
          </div>
        </logic:greaterThan>
      </logic:present>
      <div class="pageSubtitle">
        <span class="left"><bean:message key="bp.process.processDataItems.dataItems" bundle="bp.messages"/></span>
        <span class="right">&nbsp;</span>
      </div>
        <table class="dataTable" border="0" cellspacing="1" cellpadding="2" summary="items list table" width="100%">
          <tr class="listHeader"> 
            <th id="Name" align="left">
              <bean:message key="bp.process.processDataItems.header.name" bundle="bp.messages"/>
            </th>
            <th id="DataType" align="left" nowrap>
              <bean:message key="bp.process.processDataItems.header.dataType" bundle="bp.messages"/>
            </th>
          </tr>
          <logic:empty name="processDataItemsView" property="items">
            <tr class="listEven">
              <td align="center" colspan="2">
                <bean:message key="bp.process.processDataItems.noDataItem" bundle="bp.messages"/>
              </td>
            </tr>
          </logic:empty>
          <logic:notEmpty name="processDataItemsView" property="items">
            <logic:iterate id="item" name="processDataItemsView" property="items" indexId="i">
              <tr class="<%=i.intValue() % 2 == 0 ? "listEven" : "listOdd" %>">
                <td headers="Name">
                  <bean:write name="item" property="name"/>
                </td>
                <td headers="DataType">
                  <logic:equal name="item" property="type" value="0">
                    <bean:message key="bp.process.processDataItems.dataSlotType.string" bundle="bp.messages"/>
                  </logic:equal>
                  <logic:equal name="item" property="type" value="1">
                    <bean:message key="bp.process.processDataItems.dataSlotType.integer" bundle="bp.messages"/>
                  </logic:equal>
                  <logic:equal name="item" property="type" value="2">
                    <bean:message key="bp.process.processDataItems.dataSlotType.double" bundle="bp.messages"/>
                  </logic:equal>
                  <logic:equal name="item" property="type" value="3">
                    <bean:message key="bp.process.processDataItems.dataSlotType.datetime" bundle="bp.messages"/>
                  </logic:equal>
                  <logic:equal name="item" property="type" value="4">
                    <bean:message key="bp.process.processDataItems.dataSlotType.object" bundle="bp.messages"/>
                  </logic:equal>
                  <logic:equal name="item" property="type" value="5">
                    <bean:message key="bp.process.processDataItems.dataSlotType.boolean" bundle="bp.messages"/>
                  </logic:equal>
                  <logic:equal name="item" property="type" value="6">
                    <bean:message key="bp.process.processDataItems.dataSlotType.xml" bundle="bp.messages"/>
                  </logic:equal>
                  <logic:equal name="item" property="type" value="7">
                    <bean:message key="bp.process.processDataItems.dataSlotType.date" bundle="bp.messages"/>
                  </logic:equal>
                  <logic:equal name="item" property="type" value="8">
                    <bean:message key="bp.process.processDataItems.dataSlotType.time" bundle="bp.messages"/>
                  </logic:equal>
                  <logic:equal name="item" property="type" value="9">
                    <bean:message key="bp.process.processDataItems.dataSlotType.decimal" bundle="bp.messages"/>
                  </logic:equal>
                  <logic:equal name="item" property="type" value="10">
                    <bean:message key="bp.process.processDataItems.dataSlotType.duration" bundle="bp.messages"/>
                  </logic:equal>
                  <logic:equal name="item" property="type" value="11">
                    <bean:message key="bp.process.processDataItems.dataSlotType.file" bundle="bp.messages"/>
                  </logic:equal>
                </td>
              </tr>
            </logic:iterate>
          </logic:notEmpty>
        </table>
    </td>
  </tr>
</table>
</html:form>

